import{d as I,l as x,o as t,c as p,e as r,w as e,q as i,t as o,f as s,Y as v,W as z,b as d,F as y,a as c,m,a2 as O,_ as V}from"./index-c80Lh_is.js";import{S}from"./StatusBadge-UNqSn95Q.js";const A={class:"stack"},B=I({__name:"ZoneIngressSummary",props:{zoneIngressOverview:{}},setup(u){const{t:n}=x(),a=u;return(w,g)=>(t(),p("div",A,[r(v,null,{title:e(()=>[s(o(i(n)("http.api.property.status")),1)]),body:e(()=>[r(S,{status:a.zoneIngressOverview.state},null,8,["status"])]),_:1}),s(),r(v,null,{title:e(()=>[s(o(i(n)("http.api.property.address")),1)]),body:e(()=>[a.zoneIngressOverview.zoneIngress.socketAddress.length>0?(t(),d(z,{key:0,text:a.zoneIngressOverview.zoneIngress.socketAddress},null,8,["text"])):(t(),p(y,{key:1},[s(o(i(n)("common.detail.none")),1)],64))]),_:1}),s(),r(v,null,{title:e(()=>[s(o(i(n)("http.api.property.advertisedAddress")),1)]),body:e(()=>[a.zoneIngressOverview.zoneIngress.advertisedSocketAddress.length>0?(t(),d(z,{key:0,text:a.zoneIngressOverview.zoneIngress.advertisedSocketAddress},null,8,["text"])):(t(),p(y,{key:1},[s(o(i(n)("common.detail.none")),1)],64))]),_:1})]))}}),R={key:1,class:"stack"},C=I({__name:"ZoneIngressSummaryView",props:{zoneIngressOverview:{default:void 0}},setup(u){const n=u;return(a,w)=>{const g=c("RouteTitle"),k=c("RouterLink"),f=c("AppView"),h=c("RouteView");return t(),d(h,{name:"zone-ingress-summary-view",params:{zone:"",zoneIngress:""}},{default:e(({route:_,t:l})=>[r(f,null,{title:e(()=>[m("h2",null,[r(k,{to:{name:"zone-ingress-detail-view",params:{zone:_.params.zone,zoneIngress:_.params.zoneIngress}}},{default:e(()=>[r(g,{title:l("zone-ingresses.routes.item.title",{name:_.params.zoneIngress})},null,8,["title"])]),_:2},1032,["to"])])]),default:e(()=>[s(),n.zoneIngressOverview===void 0?(t(),d(O,{key:0},{message:e(()=>[m("p",null,o(l("common.collection.summary.empty_message",{type:"ZoneIngress"})),1)]),default:e(()=>[s(o(l("common.collection.summary.empty_title",{type:"ZoneIngress"}))+" ",1)]),_:2},1024)):(t(),p("div",R,[m("div",null,[m("h3",null,o(l("zone-ingresses.routes.item.overview")),1),s(),r(B,{class:"mt-4","zone-ingress-overview":n.zoneIngressOverview},null,8,["zone-ingress-overview"])])]))]),_:2},1024)]),_:1})}}}),T=V(C,[["__scopeId","data-v-92409507"]]);export{T as default};
